﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RT = Coolzon.Metadata.Runtime;

namespace Coolzon.UI.Core
{
    public interface ValueConverter
    {
        object Convert(ConvertContext context, RT.Property property);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        /// <param name="value"></param>
        /// <param name="dtTagData">设计时这个属性对应的额外数据</param>
        /// <returns></returns>
        RT.ValueNode ConvertBack(ConvertContext context, object value, object dtTagData);
    }
}
